package com.ruoyi.flowable.service;

import com.ruoyi.flowable.domain.WfDeployForm;
import com.baomidou.mybatisplus.extension.service.IService;
import org.flowable.bpmn.model.BpmnModel;

/**
 * 流程实例关联单Service接口
 *
 * @author siashan
 * @date 2023-01-04
 */
public interface IWfDeployFormService extends IService<WfDeployForm> {
    /**
     * 新增流程实例关联表单
     *
     * @param wfDeployForm 流程实例关联表单
     * @return 结果
     */
    int insertWfDeployForm(WfDeployForm wfDeployForm);

    /**
     * 保存流程实例关联表单
     * @param deployId 部署ID
     * @param bpmnModel bpmnModel对象
     * @return
     */
    boolean saveInternalDeployForm(String deployId, BpmnModel bpmnModel);
}
